<?php

namespace Act\Logic\Event;

use Act\Logic\Event\CallBackInterface;
use common\Factory\Factory;

class RedisCallback implements CallBackInterface {
    
    public function actChange($appid, $idfa, $eventTimestamp) {
        $redis = Factory::getServer('Redis');
        if($redis) {
            $idfa = crc32($idfa);
            $idfa = sprintf("%u", $idfa);
            $redis->sAdd('idfaList', $idfa);
        }
    }
}